package com.wx.day10.Controller;


import com.wx.day10.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

@RestController
public class Test {

    @GetMapping("list")
    public List<User> test(){
        List<User> list = new ArrayList<>();
        User user = new User();
        user.setName("wd");
        user.setAge(18);
        list.add(user);
        return list;
    }



}
